from django.conf.urls.defaults import *

#from cita.models import Citacao
from cita.views import inicio, porTag, Pesquisa, PorAutor



# Uncomment the next two lines to enable the admin:
from django.contrib import admin

admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^e_citacao/', include('e_citacao.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^admin/', include(admin.site.urls)),
    url(r'^inicio/$', inicio, name = 'inicio'),

    url(r'^q/(.*)/$', Pesquisa.as_view(), name = "pesquisa"),
    url(r'^autor/(?P<pk>\d*)/$', PorAutor.as_view(), name = "porAutor"),
    url(r'^tag/(?P<id>\d*)/$', porTag, name = "porTag"),
    (r'^st_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root':
                                        '/home/kivson/workspace/e_citacao/src/e_citacao/media/'}),
)
